<script setup>
import { provideFormKey } from '../../../hooks/use-provide-key'

const { schema } = inject(provideFormKey)

const { field } = defineProps({
  field: Object,
})

const fieldName = field.field

defineOptions({ name: 'RenderInputNumber' })
</script>

<template>
  <el-input-number v-model="schema.data[fieldName]" v-bind="field.props" />
</template>
